package com.example.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class HelloCtrl {

    @ResponseBody
    @RequestMapping("/hello")
    public String hello(){
        return "Hello world";
    }

    @ResponseBody
    @RequestMapping("/a")
    public String hello1(){
        return "您好！";
    }

    @RequestMapping("/first")
    public String toFirst() {
        return "first";
    }
    @GetMapping("bb")
    public String goAa(){
        return "admin/bb";
    }
}


